<template>
  <div class="wrapper">
    <u-parse :show-with-animation="true" :lazy-load="true" :selectable="true" :html="agree.content" v-if="agree"></u-parse>
  </div>
</template>
<script>
export default {
  data() {
    return {
      agree: "",
    };
  },
  mounted() {},
  onLoad(option) {
    console.log(this.way)
    console.log(option.type)
    console.log(option.title)
    uni.setNavigationBarTitle({
      title: option.title,
    });
    this.init(option.type);
  },

  methods: {
    init(code) {
      this.$clApi.open.getAgree(code).then((res) => {
        this.agree = res.data;
      });
    },
  },
};
</script>
<style lang="scss" scoped>
.wrapper {
  padding: 16rpx;
}
</style>
